package com.itany.cloud.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/8/11 16:59
 * Version:1.0-SNAPSHOT
 * Description:
 */
@Configuration
public class RibbonConfig {

    @Bean
    public IRule ribbonRule(){
        return new RandomRule();
    }

}
